#ifndef OPERAR_H_
#define OPERAR_H_

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef enum {
    ERR_OK,
    ERR_ARGS,
    ERR_NUMBER,
    ERR_OPERATOR,
} Error;


void usage(const char *program, Error error_code);
void operate(int *result_var, int a, int b, char op);
Error correct_args(int argc, char **argv);
Error check_operator(char *op);

#endif //OPERAR_H_
